<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * LogNewMember
 *
 * @ORM\Table(name="log_new_member")
 * @ORM\Entity
 */
class LogNewMember
{
    /**
     * @var string
     *
     * @ORM\Column(name="webchat_username", type="string", length=45, nullable=false)
     */
    private $webchatUsername = '';

    /**
     * @var integer
     *
     * @ORM\Column(name="webchat_id", type="integer", nullable=false)
     */
    private $webchatId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="mobile", type="string", length=45, nullable=false)
     */
    private $mobile = '';

    /**
     * @var string
     *
     * @ORM\Column(name="user_name", type="string", length=45, nullable=false)
     */
    private $userName = '';

    /**
     * @var string
     *
     * @ORM\Column(name="nickname", type="string", length=45, nullable=false)
     */
    private $nickname = '';

    /**
     * @var string
     *
     * @ORM\Column(name="tags", type="string", length=45, nullable=false)
     */
    private $tags = '';

    /**
     * @var string
     *
     * @ORM\Column(name="note", type="string", length=45, nullable=false)
     */
    private $note = '';

    /**
     * @var integer
     *
     * @ORM\Column(name="source_type", type="integer", nullable=false)
     */
    private $sourceType = '0';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="ctime", type="datetime", nullable=false)
     */
    private $ctime = 'CURRENT_TIMESTAMP';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



    /**
     * Set webchatUsername
     *
     * @param string $webchatUsername
     *
     * @return LogNewMember
     */
    public function setWebchatUsername($webchatUsername)
    {
        $this->webchatUsername = $webchatUsername;

        return $this;
    }

    /**
     * Get webchatUsername
     *
     * @return string
     */
    public function getWebchatUsername()
    {
        return $this->webchatUsername;
    }

    /**
     * Set webchatId
     *
     * @param integer $webchatId
     *
     * @return LogNewMember
     */
    public function setWebchatId($webchatId)
    {
        $this->webchatId = $webchatId;

        return $this;
    }

    /**
     * Get webchatId
     *
     * @return integer
     */
    public function getWebchatId()
    {
        return $this->webchatId;
    }

    /**
     * Set mobile
     *
     * @param string $mobile
     *
     * @return LogNewMember
     */
    public function setMobile($mobile)
    {
        $this->mobile = $mobile;

        return $this;
    }

    /**
     * Get mobile
     *
     * @return string
     */
    public function getMobile()
    {
        return $this->mobile;
    }

    /**
     * Set userName
     *
     * @param string $userName
     *
     * @return LogNewMember
     */
    public function setUserName($userName)
    {
        $this->userName = $userName;

        return $this;
    }

    /**
     * Get userName
     *
     * @return string
     */
    public function getUserName()
    {
        return $this->userName;
    }

    /**
     * Set nickname
     *
     * @param string $nickname
     *
     * @return LogNewMember
     */
    public function setNickname($nickname)
    {
        $this->nickname = $nickname;

        return $this;
    }

    /**
     * Get nickname
     *
     * @return string
     */
    public function getNickname()
    {
        return $this->nickname;
    }

    /**
     * Set tags
     *
     * @param string $tags
     *
     * @return LogNewMember
     */
    public function setTags($tags)
    {
        $this->tags = $tags;

        return $this;
    }

    /**
     * Get tags
     *
     * @return string
     */
    public function getTags()
    {
        return $this->tags;
    }

    /**
     * Set note
     *
     * @param string $note
     *
     * @return LogNewMember
     */
    public function setNote($note)
    {
        $this->note = $note;

        return $this;
    }

    /**
     * Get note
     *
     * @return string
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * Set sourceType
     *
     * @param integer $sourceType
     *
     * @return LogNewMember
     */
    public function setSourceType($sourceType)
    {
        $this->sourceType = $sourceType;

        return $this;
    }

    /**
     * Get sourceType
     *
     * @return integer
     */
    public function getSourceType()
    {
        return $this->sourceType;
    }

    /**
     * Set ctime
     *
     * @param \DateTime $ctime
     *
     * @return LogNewMember
     */
    public function setCtime($ctime)
    {
        $this->ctime = $ctime;

        return $this;
    }

    /**
     * Get ctime
     *
     * @return \DateTime
     */
    public function getCtime()
    {
        return $this->ctime;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
